package sv.gob.mh.dgii.model;

// Generated Nov 4, 2008 1:57:34 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbConfigSupervisionSol generated by hbm2java
 */
@Entity
@Table(name = "TB_CONFIG_SUPERVISION_SOL", schema = "CATALOGOS")
@SequenceGenerator(name="SEQ_TB_CONFIG_SUPERVISION_SOL" , sequenceName="SEQ_TB_CONFIG_SUPERVISION_SOL")
public class TbConfigSupervisionSol implements java.io.Serializable {

	

	/**
	 * 
	 */
	private static final long serialVersionUID = -488365196709756445L;
	private Long cconfig;
	private TbImportancia tbImportancia;
	private TbEstado tbEstado;
	private String carea;
	private String mcategoria;
	private Integer ccasosSupervision;
	private Integer ccasosMaximo;
	private String cusuario;
	private Date fhIngreso;
	private Integer bactiva;
	
	
	@Column(name = "B_ACTIVA", nullable = true, precision = 1, scale = 0)
	public Integer getBactiva() {
		return bactiva;
	}

	public void setBactiva(Integer bactiva) {
		this.bactiva = bactiva;
	}

	public TbConfigSupervisionSol() {
	}

	public TbConfigSupervisionSol(Long cconfig, TbImportancia tbImportancia,
			TbEstado tbEstado, String carea, String mcategoria,
			Integer ccasosSupervision, Integer ccasosMaximo) {
		this.cconfig = cconfig;
		this.tbImportancia = tbImportancia;
		this.tbEstado = tbEstado;
		this.carea = carea;
		this.mcategoria = mcategoria;
		this.ccasosSupervision = ccasosSupervision;
		this.ccasosMaximo = ccasosMaximo;
	}

	@Id
	@Column(name = "C_CONFIG", unique = true, nullable = false, precision = 10, scale = 0)
	@GeneratedValue(strategy=GenerationType.AUTO, generator="SEQ_TB_CONFIG_SUPERVISION_SOL")
	public Long getCconfig() {
		return this.cconfig;
	}

	public void setCconfig(Long cconfig) {
		this.cconfig = cconfig;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "C_IMPORTANCIA")
	public TbImportancia getTbImportancia() {
		return this.tbImportancia;
	}

	public void setTbImportancia(TbImportancia tbImportancia) {
		this.tbImportancia = tbImportancia;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "C_ESTADO", nullable = true)
	public TbEstado getTbEstado() {
		return this.tbEstado;
	}

	public void setTbEstado(TbEstado tbEstado) {
		this.tbEstado = tbEstado;
	}

	@Column(name = "C_AREA", nullable = false, length = 10)
	public String getCarea() {
		return this.carea;
	}

	public void setCarea(String carea) {
		this.carea = carea;
	}

	@Column(name = "M_CATEGORIA", length = 1)
	public String getMcategoria() {
		return this.mcategoria;
	}

	public void setMcategoria(String mcategoria) {
		this.mcategoria = mcategoria;
	}

	@Column(name = "C_CASOS_SUPERVISION", nullable = false, precision = 4, scale = 0)
	public Integer getCcasosSupervision() {
		return this.ccasosSupervision;
	}

	public void setCcasosSupervision(Integer ccasosSupervision) {
		this.ccasosSupervision = ccasosSupervision;
	}

	@Column(name = "C_CASOS_MAXIMO", nullable = false, precision = 4, scale = 0)
	public Integer getCcasosMaximo() {
		return this.ccasosMaximo;
	}

	public void setCcasosMaximo(Integer ccasosMaximo) {
		this.ccasosMaximo = ccasosMaximo;
	}
	@Column(name = "C_USUARIO", length = 30)
	public String getCusuario() {
		return cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO")
	public Date getFhIngreso() {
		return fhIngreso;
	}

	public void setFhIngreso(Date fhIngreso) {
		this.fhIngreso = fhIngreso;
	}


}
